package com.study.model.mdao;

import org.apache.ibatis.annotations.Mapper;

import com.study.model.pojo.Dept;
import com.study.model.pojo.Rights;

@Mapper
public interface RightsMdao {
	
	/**
	 * 新增新增权限**/
	public void addRights(Rights r);
	
	/**
	 * 找到最大ID**/
	public Integer findMaxid(int deptno);
	
	/**
	 * 根据ID查询权限名**/
	public String findRname(int rid);
	
	/**
	 * 根据ID删除权限**/
	public void delrights(int rid);
}
